package com.lkl.dao;

import com.lkl.entity.Address;
import com.lkl.utils.DruidUtil;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * 地址数据操作类
 */
public class AddressDao extends DruidUtil<Address> {
    @Override
    public Address getResultSet(ResultSet rs) throws SQLException {
        Address address = new Address();
        address.setCode(rs.getString("code"));
        address.setName(rs.getString("name"));
        address.setParentCode(rs.getString("parent_code"));
        return address;
    }
}
